#define _CRT_SECURE_NO_WARNINGS 1

#include "Heap.h"

void TestHeap1()
{
	Heap heap;
	int array[] = { 34,23,13,44,9 };
	HeapCreate(&heap, array, sizeof(array) / sizeof(array[0]));
	/*for (int i = 0; i < sizeof(array) / sizeof(array[0]); i++)
	{
		HeapPush(&heap, array[i]);
	}*/

	//HeapPop(&heap);
	//HeapPop(&heap);
	//HeapPop(&heap);


	HeapPrint(&heap);

	HeapDestory(&heap);
}

void TestHeap2()
{
	int array[] = { 34,23,13,56,44,72,9 };
	HeapSort(array, sizeof(array) / sizeof(array[0]));

	for (int i = 0; i < sizeof(array) / sizeof(array[0]); i++)
	{
		printf("%d ", array[i]);
	}
}

void TestHeap3()
{
	TestTopk();
}

int main()
{
	//TestHeap1();
	TestHeap2();
	return 0;
}